package com.example.shardingsphere.fegin.fallback;

import com.example.shardingsphere.entity.UserRoles;
import com.example.shardingsphere.fegin.ProductFeginClient;
import org.springframework.stereotype.Component;

import java.util.List;


@Component
public class ProductFeignClientFallback implements ProductFeginClient {

    @Override
    public Integer insertUserRole(UserRoles userRoles) {
        return 0;
    }

    @Override
    public Integer bindDefaultRole(Long userId) {
        return 0;
    }

    @Override
    public String getUserRoleCode(Long userId) {
        return "";
    }

    @Override
    public void upgradeToAdmin(String userId) {

    }

    @Override
    public void downgradeToUser(String userId) {

    }


    @Override
    public List<Long> getNormalUserIds() {
        return List.of();
    }


}
